﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserEdit.aspx.cs" Inherits="Com.CMS263.Web.manage.UserManager.UserEdit" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../style/main.css" rel="stylesheet" type="text/css" />
    <link href="../common/validator.css" rel="stylesheet" type="text/css" />

    <script src="../../js/jquery-1.4.2.min.js" type="text/javascript"></script>

    <script src="../../js/common.js" type="text/javascript"></script>

    <script language="javascript" type="text/javascript">
        function useredit() {
            if ($("#UserName").val().length < 1) {
                alert("用户名必填！");
                $("#UserName").focus();
                return false;
            } else if ($("#Telephone").val().length < 1) {
                alert("电话必填！");
                $("#Telephone").focus();
                return false;
            } else {
                return true;
            }
        }


        function checkNum(obj) {
            var tempstr;
            //先把非数字的都替换掉，除了数字和.   
            tempstr = obj.value.replace(/[^\d]/g, "");
            obj.value = tempstr;
        }   
    </script>

</head>
<body>
    <form id="form1" runat="server" enctype="multipart/form-data" method="post">
    <input id="Id" name="Id" value="<%=cus.Id %>" type="hidden" />
    <input id="page" name="page" value="<%=page %>" type="hidden" />
    <input id="userNameSou" name="userNameSou" value="<%=userNameSou %>" type="hidden" />
    <table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="table_1">
        <tr>
            <td height="23" class="table_2" colspan="2">
                用户管理
            </td>
        </tr>
        <tr>
            <td class="tdside" colspan="2">
                修改用户
            </td>
        </tr>
        <tr>
            <td class="tdside" style="width: 200px; text-align: center;">
                手&nbsp; 机&nbsp; 号&nbsp; 码:
            </td>
            <td class="tdside">
            <input type="text" id="UserMobile" name="UserMobile" value="<%=cus.UserMobile %>" />
               
            </td>
        </tr>
        <tr>
            <td class="tdside" style="width: 200px; text-align: center;">
                邮&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 箱:
            </td>
            <td>
               <input type="text" id="UserEmail" name="UserEmail" value="<%=cus.UserEmail %>" />
            </td>
        </tr>
        <tr>
            <td class="tdside" style="width: 200px; text-align: center;">
                注&nbsp; 册&nbsp; 日&nbsp; 期:
            </td>
            <td class="tdside">
                &nbsp;&nbsp;<%=cus.AddDate%>
            </td>
        </tr>
        <tr>
            <td class="tdside" style="width: 200px; text-align: center;">
                用&nbsp;&nbsp;&nbsp;&nbsp;户&nbsp;&nbsp;&nbsp;&nbsp;名:
            </td>
            <td class="tdside">
                &nbsp;&nbsp;<%=cus.UserName%>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <asp:Button ID="Button1" runat="server" Text="修改" Width="50px" OnClientClick=" return useredit();"
                    OnClick="Button1_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" value="取消" id="cancel" onclick="history.go(-1)" style="width: 50px" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
